<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="../css/home.css" type="text/css" rel="stylesheet"/>
    <script charset="UTF-8" language="javascript"  type="text/javascript"  src="../js/jmeterPage.js"></script>
    <link href="../css/bootstrap3.3.6.min.css" rel="stylesheet">
    <script src="../js/jquery2.1.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</head>
<body onload="initializeData()">
    <div class="bottom">
        <div class="filter" style="margin-bottom: 0">
            <label onclick="setProjectShowList();controlTopDiv('setProject', 'open', this);">项目目录:</label>
            <select  name="project" id="project" title="脚本项目" onchange="projectSelectOnclick()">
                <option value="all">全部数据</option>
            </select>
            <label >脚本列表:</label>
            <select  style="margin-right: 80px" name="jmx" id="jmx" title="脚本列表" onchange="">
                <option value="all">全部数据</option>
            </select>
            <button onclick="controlTopDiv('upLoadFile', 'open', this)" style="float: left">上传脚本</button>
            <button  id="edit" style="float: left" onclick="showJmxUserVar()">编辑脚本</button>
            <button  id="sendScript" style="float: left" onclick="scriptToAllNode()">分发脚本</button>
        </div>
        <div class="filter">
            <label >节点控制:</label>
            <button  id="run" onclick="runAllNode()" style="float: left">全部运行</button>
            <button title="红色:无法链接；绿色:连接成功" onclick="checkNode()" style="float: left">节点测试</button>
            <button  onclick="downloadNS()" style="float: left">下载节点</button>
        </div>
        <div class="content">
            <ul id="myTab" class="nav nav-tabs"></ul>
            <div id="myTabContent" class="tab-content"></div>
        </div>
    </div>

    <div class="topDiv1000" id="upLoadFile" style="display: none">
        <div class="topDiv1001" style="width: 200px">
            <div style="float: left; width: 100%">
                <input type="file" id="file" name="file" multiple="multiple"/>
                <input type="button" id="upload" onclick="addJmx();controlTopDiv('upLoadFile', 'close');" value="确定" style="width: 60px"/>
                <input type="button" onclick="controlTopDiv('upLoadFile', 'close');" value="取消" style="width: 60px"/>
            </div>
        </div>
    </div>
    <div class="topDiv1000" id="showEditJmx" style="display: none">
        <div class="topDiv1001 jmeterEditJmx">
            <div style="float: left; width: 100%">
                <label class="topDivTitle">用户定义的变量</label>
                <label class="close" onclick="controlEditJmxTopDiv('showEditJmx', 'close', '')">X</label>
            </div>
            <div style="width: 100%; height: 300px;">
                <table id="jmxUserVarTable" border="1" style="border-collapse: collapse; width: 95%; text-align: left; margin:0 auto">
                    <tbody>
                    <tr>
                        <th>名称</th>
                        <th>值</th>
                    </tr>
                    </tbody>
                </table>
            </div>
            <button onclick="saveJmxUserVar()">保存</button>
        </div>
    </div>
    <div class="topDiv1000" id="setProject" style="display: none">
        <div class="topDiv1001" style="width: 200px">
            <div style="float: left; width: 100%">
                <label class="topDivTitle" style="width: 70%;">编辑项目</label>
                <label class="close" onclick="controlTopDiv('setProject', 'close', '')">X</label>
            </div>
            <div id="projectContent"></div>
        </div>
    </div>

</body>
</html>